package cn.edu.gdut.deepcode.domain.vo;

import cn.edu.gdut.deepcode.constant.GlobalConstant;
import cn.edu.gdut.deepcode.enums.RoleEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户VO
 * </p>
 *
 * @Author: 暮倦
 * @Since: 2025-04-08  21:04
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
@ApiModel("用户VO实体")
public class UserVO {
    @ApiModelProperty("用户id")
    private Long id;

//    @ApiModelProperty("token,登录后的每次请求都需要在请求头authorization中携带此token")
//    private String token;

    @ApiModelProperty("用户名")
    private String username;

//    @ApiModelProperty("记住我")
//    private Boolean re;

    @ApiModelProperty(value = GlobalConstant.ROLE_ENUM_DESC)
    private RoleEnum role=RoleEnum.NORMAL_USER;

    @ApiModelProperty(value ="主题")
    private String theme;
}
